package com.bms.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 某一区域的IP范围
 * 
 * @author Lan
 */
@Entity
@Table(name = "T_IPRANGE")
public class IPRange extends BaseEntity {

	private static final long serialVersionUID = -2512798180692643658L;

	private String areaName;
	private String startIP;
	private String mask;

	public IPRange() {
	}

	public IPRange(String areaName, String startIP, String mask) {
		this.areaName = areaName;
		this.startIP = startIP;
		this.mask = mask;
	}

	/**
	 * @author Lan
	 * @return 区域名称
	 */
	@Column(length = 50)
	public String getAreaName() {
		return areaName;
	}

	/**
	 * @author Lan
	 * @param areaName 区域名称
	 */
	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	/**
	 * @author Lan
	 * @return 该区域的起始IP
	 */
	@Column(length = 15)
	public String getStartIP() {
		return startIP;
	}

	/**
	 * @author Lan
	 * @param startIP 该区域的起始IP
	 */
	public void setStartIP(String startIP) {
		this.startIP = startIP;
	}

	/**
	 * @author Lan
	 * @return 掩码
	 */
	@Column(length = 15)
	public String getMask() {
		return mask;
	}

	/**
	 * @author Lan
	 * @param mask 掩码
	 */
	public void setMask(String mask) {
		this.mask = mask;
	}

}
